@datapos/datapos-development 0.3.394 → 0.3.395
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { promises as at } from "node:fs";
|
|
2
|
-
import { nanoid as
|
|
3
|
-
import { contextConfigSchema as
|
|
1
|
+
import { promises as at, existsSync as Xi } from "node:fs";
|
|
2
|
+
import { nanoid as Qi } from "nanoid";
|
|
3
|
+
import { contextConfigSchema as Ji, connectorConfigSchema as Yi, CONNECTOR_SOURCE_OPERATIONS as Zi, CONNECTOR_DESTINATION_OPERATIONS as ts, presenterConfigSchema as es } from "@datapos/datapos-shared";
|
|
4
4
|
import te from "node:path";
|
|
5
|
-
import { promisify as
|
|
6
|
-
import { exec as
|
|
7
|
-
import { fileURLToPath as ri, URL as
|
|
5
|
+
import { promisify as is } from "node:util";
|
|
6
|
+
import { exec as ss, spawn as rs } from "node:child_process";
|
|
7
|
+
import { fileURLToPath as ri, URL as as } from "node:url";
|
|
8
8
|
let xe;
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function
|
|
10
|
+
function ns(t) {
|
|
11
11
|
return {
|
|
12
12
|
lang: t?.lang ?? xe?.lang,
|
|
13
13
|
message: t?.message,
|
|
@@ -17,7 +17,7 @@ function as(t) {
|
|
|
17
17
|
}
|
|
18
18
|
// @__NO_SIDE_EFFECTS__
|
|
19
19
|
function Ee(t, e, s) {
|
|
20
|
-
const a = t["~run"]({ value: e }, /* @__PURE__ */
|
|
20
|
+
const a = t["~run"]({ value: e }, /* @__PURE__ */ ns(s));
|
|
21
21
|
return {
|
|
22
22
|
typed: a.typed,
|
|
23
23
|
success: !a.issues,
|
|
@@ -25,17 +25,17 @@ function Ee(t, e, s) {
|
|
|
25
25
|
issues: a.issues
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var os = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], ai = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], hs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", ni = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ve = {
|
|
29
29
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
30
30
|
5: "class enum extends super const export import",
|
|
31
31
|
6: "enum",
|
|
32
32
|
strict: "implements interface let package private protected public static yield",
|
|
33
33
|
strictBind: "eval arguments"
|
|
34
|
-
}, ge = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",
|
|
34
|
+
}, ge = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", us = {
|
|
35
35
|
5: ge,
|
|
36
36
|
"5module": ge + " export import",
|
|
37
37
|
6: ge + " const class extends export import super"
|
|
38
|
-
},
|
|
38
|
+
}, cs = /^in(stanceof)?$/, ps = new RegExp("[" + ni + "]"), ls = new RegExp("[" + ni + hs + "]");
|
|
39
39
|
function Pe(t, e) {
|
|
40
40
|
for (var s = 65536, a = 0; a < e.length; a += 2) {
|
|
41
41
|
if (s += e[a], s > t)
|
|
@@ -46,10 +46,10 @@ function Pe(t, e) {
|
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
48
|
function ft(t, e) {
|
|
49
|
-
return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 &&
|
|
49
|
+
return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && ps.test(String.fromCharCode(t)) : e === !1 ? !1 : Pe(t, ai);
|
|
50
50
|
}
|
|
51
51
|
function vt(t, e) {
|
|
52
|
-
return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 &&
|
|
52
|
+
return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && ls.test(String.fromCharCode(t)) : e === !1 ? !1 : Pe(t, ai) || Pe(t, os);
|
|
53
53
|
}
|
|
54
54
|
var O = function(e, s) {
|
|
55
55
|
s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
|
|
@@ -167,24 +167,24 @@ function hi(t, e, s) {
|
|
|
167
167
|
}
|
|
168
168
|
return -1;
|
|
169
169
|
}
|
|
170
|
-
var Ie = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,
|
|
171
|
-
return
|
|
170
|
+
var Ie = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, W = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ui = Object.prototype, fs = ui.hasOwnProperty, ds = ui.toString, Rt = Object.hasOwn || (function(t, e) {
|
|
171
|
+
return fs.call(t, e);
|
|
172
172
|
}), $e = Array.isArray || (function(t) {
|
|
173
|
-
return
|
|
174
|
-
}),
|
|
173
|
+
return ds.call(t) === "[object Array]";
|
|
174
|
+
}), Ge = /* @__PURE__ */ Object.create(null);
|
|
175
175
|
function kt(t) {
|
|
176
|
-
return
|
|
176
|
+
return Ge[t] || (Ge[t] = new RegExp("^(?:" + t.replace(/ /g, "|") + ")$"));
|
|
177
177
|
}
|
|
178
178
|
function gt(t) {
|
|
179
179
|
return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var ms = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ot = function(e, s) {
|
|
182
182
|
this.line = e, this.column = s;
|
|
183
183
|
};
|
|
184
184
|
Ot.prototype.offset = function(e) {
|
|
185
185
|
return new Ot(this.line, this.column + e);
|
|
186
186
|
};
|
|
187
|
-
var
|
|
187
|
+
var Gt = function(e, s, a) {
|
|
188
188
|
this.start = s, this.end = a, e.sourceFile !== null && (this.source = e.sourceFile);
|
|
189
189
|
};
|
|
190
190
|
function _e(t, e) {
|
|
@@ -291,21 +291,21 @@ var ee = {
|
|
|
291
291
|
// When enabled, parenthesized expressions are represented by
|
|
292
292
|
// (non-standard) ParenthesizedExpression nodes
|
|
293
293
|
preserveParens: !1
|
|
294
|
-
},
|
|
295
|
-
function
|
|
294
|
+
}, Ke = !1;
|
|
295
|
+
function ys(t) {
|
|
296
296
|
var e = {};
|
|
297
297
|
for (var s in ee)
|
|
298
298
|
e[s] = t && Rt(t, s) ? t[s] : ee[s];
|
|
299
|
-
if (e.ecmaVersion === "latest" ? e.ecmaVersion = 1e8 : e.ecmaVersion == null ? (!
|
|
299
|
+
if (e.ecmaVersion === "latest" ? e.ecmaVersion = 1e8 : e.ecmaVersion == null ? (!Ke && typeof console == "object" && console.warn && (Ke = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
300
300
|
Defaulting to 2020, but this will stop working in the future.`)), e.ecmaVersion = 11) : e.ecmaVersion >= 2015 && (e.ecmaVersion -= 2009), e.allowReserved == null && (e.allowReserved = e.ecmaVersion < 5), (!t || t.allowHashBang == null) && (e.allowHashBang = e.ecmaVersion >= 14), $e(e.onToken)) {
|
|
301
301
|
var a = e.onToken;
|
|
302
302
|
e.onToken = function(o) {
|
|
303
303
|
return a.push(o);
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
return $e(e.onComment) && (e.onComment =
|
|
306
|
+
return $e(e.onComment) && (e.onComment = xs(e, e.onComment)), e;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function xs(t, e) {
|
|
309
309
|
return function(s, a, o, f, d, v) {
|
|
310
310
|
var g = {
|
|
311
311
|
type: s ? "Block" : "Line",
|
|
@@ -313,15 +313,15 @@ function ys(t, e) {
|
|
|
313
313
|
start: o,
|
|
314
314
|
end: f
|
|
315
315
|
};
|
|
316
|
-
t.locations && (g.loc = new
|
|
316
|
+
t.locations && (g.loc = new Gt(this, d, v)), t.ranges && (g.range = [o, f]), e.push(g);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
var Ht = 1, Mt = 2, Ne = 4, ci = 8, Le = 16, pi = 32, he = 64, li = 128, It = 256,
|
|
319
|
+
var Ht = 1, Mt = 2, Ne = 4, ci = 8, Le = 16, pi = 32, he = 64, li = 128, It = 256, Kt = 512, ue = Ht | Mt | It;
|
|
320
320
|
function Oe(t, e) {
|
|
321
321
|
return Mt | (t ? Ne : 0) | (e ? ci : 0);
|
|
322
322
|
}
|
|
323
323
|
var ie = 0, Re = 1, Tt = 2, fi = 3, di = 4, mi = 5, H = function(e, s, a) {
|
|
324
|
-
this.options = e =
|
|
324
|
+
this.options = e = ys(e), this.sourceFile = e.sourceFile, this.keywords = kt(us[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
325
325
|
var o = "";
|
|
326
326
|
e.allowReserved !== !0 && (o = ve[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (o += " await")), this.reservedWords = kt(o);
|
|
327
327
|
var f = (o ? o + " " : "") + ve.strict;
|
|
@@ -344,7 +344,7 @@ mt.inAsync.get = function() {
|
|
|
344
344
|
mt.canAwait.get = function() {
|
|
345
345
|
for (var t = this.scopeStack.length - 1; t >= 0; t--) {
|
|
346
346
|
var e = this.scopeStack[t], s = e.flags;
|
|
347
|
-
if (s & (It |
|
|
347
|
+
if (s & (It | Kt))
|
|
348
348
|
return !1;
|
|
349
349
|
if (s & Mt)
|
|
350
350
|
return (s & Ne) > 0;
|
|
@@ -364,7 +364,7 @@ mt.treatFunctionsAsVar.get = function() {
|
|
|
364
364
|
mt.allowNewDotTarget.get = function() {
|
|
365
365
|
for (var t = this.scopeStack.length - 1; t >= 0; t--) {
|
|
366
366
|
var e = this.scopeStack[t], s = e.flags;
|
|
367
|
-
if (s & (It |
|
|
367
|
+
if (s & (It | Kt) || s & Mt && !(s & Le))
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
return !1;
|
|
@@ -389,21 +389,21 @@ H.tokenizer = function(e, s) {
|
|
|
389
389
|
return new this(s, e);
|
|
390
390
|
};
|
|
391
391
|
Object.defineProperties(H.prototype, mt);
|
|
392
|
-
var J = H.prototype,
|
|
392
|
+
var J = H.prototype, vs = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
393
393
|
J.strictDirective = function(t) {
|
|
394
394
|
if (this.options.ecmaVersion < 5)
|
|
395
395
|
return !1;
|
|
396
396
|
for (; ; ) {
|
|
397
|
-
|
|
398
|
-
var e =
|
|
397
|
+
W.lastIndex = t, t += W.exec(this.input)[0].length;
|
|
398
|
+
var e = vs.exec(this.input.slice(t));
|
|
399
399
|
if (!e)
|
|
400
400
|
return !1;
|
|
401
401
|
if ((e[1] || e[2]) === "use strict") {
|
|
402
|
-
|
|
403
|
-
var s =
|
|
402
|
+
W.lastIndex = t + e[0].length;
|
|
403
|
+
var s = W.exec(this.input), a = s.index + s[0].length, o = this.input.charAt(a);
|
|
404
404
|
return o === ";" || o === "}" || Q.test(s[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(o) || o === "!" && this.input.charAt(a + 1) === "=");
|
|
405
405
|
}
|
|
406
|
-
t += e[0].length,
|
|
406
|
+
t += e[0].length, W.lastIndex = t, t += W.exec(this.input)[0].length, this.input[t] === ";" && t++;
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
J.eat = function(t) {
|
|
@@ -476,12 +476,12 @@ w.parseTopLevel = function(t) {
|
|
|
476
476
|
}
|
|
477
477
|
return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
|
|
478
478
|
};
|
|
479
|
-
var Me = { kind: "loop" },
|
|
479
|
+
var Me = { kind: "loop" }, gs = { kind: "switch" };
|
|
480
480
|
w.isLet = function(t) {
|
|
481
481
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
482
482
|
return !1;
|
|
483
|
-
|
|
484
|
-
var e =
|
|
483
|
+
W.lastIndex = this.pos;
|
|
484
|
+
var e = W.exec(this.input), s = this.pos + e[0].length, a = this.input.charCodeAt(s);
|
|
485
485
|
if (a === 91 || a === 92)
|
|
486
486
|
return !0;
|
|
487
487
|
if (t)
|
|
@@ -494,7 +494,7 @@ w.isLet = function(t) {
|
|
|
494
494
|
if (a === 92 || a > 55295 && a < 56320)
|
|
495
495
|
return !0;
|
|
496
496
|
var f = this.input.slice(s, o);
|
|
497
|
-
if (!
|
|
497
|
+
if (!cs.test(f))
|
|
498
498
|
return !0;
|
|
499
499
|
}
|
|
500
500
|
return !1;
|
|
@@ -502,23 +502,23 @@ w.isLet = function(t) {
|
|
|
502
502
|
w.isAsyncFunction = function() {
|
|
503
503
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
504
504
|
return !1;
|
|
505
|
-
|
|
506
|
-
var t =
|
|
505
|
+
W.lastIndex = this.pos;
|
|
506
|
+
var t = W.exec(this.input), e = this.pos + t[0].length, s;
|
|
507
507
|
return !Q.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(vt(s = this.input.charCodeAt(e + 8)) || s > 55295 && s < 56320));
|
|
508
508
|
};
|
|
509
509
|
w.isUsingKeyword = function(t, e) {
|
|
510
510
|
if (this.options.ecmaVersion < 17 || !this.isContextual(t ? "await" : "using"))
|
|
511
511
|
return !1;
|
|
512
|
-
|
|
513
|
-
var s =
|
|
512
|
+
W.lastIndex = this.pos;
|
|
513
|
+
var s = W.exec(this.input), a = this.pos + s[0].length;
|
|
514
514
|
if (Q.test(this.input.slice(this.pos, a)))
|
|
515
515
|
return !1;
|
|
516
516
|
if (t) {
|
|
517
517
|
var o = a + 5, f;
|
|
518
518
|
if (this.input.slice(a, o) !== "using" || o === this.input.length || vt(f = this.input.charCodeAt(o)) || f > 55295 && f < 56320)
|
|
519
519
|
return !1;
|
|
520
|
-
|
|
521
|
-
var d =
|
|
520
|
+
W.lastIndex = o;
|
|
521
|
+
var d = W.exec(this.input);
|
|
522
522
|
if (d && Q.test(this.input.slice(o, o + d[0].length)))
|
|
523
523
|
return !1;
|
|
524
524
|
}
|
|
@@ -576,8 +576,8 @@ w.parseStatement = function(t, e, s) {
|
|
|
576
576
|
case u._export:
|
|
577
577
|
case u._import:
|
|
578
578
|
if (this.options.ecmaVersion > 10 && a === u._import) {
|
|
579
|
-
|
|
580
|
-
var d =
|
|
579
|
+
W.lastIndex = this.pos;
|
|
580
|
+
var d = W.exec(this.input), v = this.pos + d[0].length, g = this.input.charCodeAt(v);
|
|
581
581
|
if (g === 40 || g === 46)
|
|
582
582
|
return this.parseExpressionStatement(o, this.parseExpression());
|
|
583
583
|
}
|
|
@@ -644,7 +644,7 @@ w.parseReturnStatement = function(t) {
|
|
|
644
644
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(u.semi) || this.insertSemicolon() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
|
|
645
645
|
};
|
|
646
646
|
w.parseSwitchStatement = function(t) {
|
|
647
|
-
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(u.braceL), this.labels.push(
|
|
647
|
+
this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(u.braceL), this.labels.push(gs), this.enterScope(0);
|
|
648
648
|
for (var e, s = !1; this.type !== u.braceR; )
|
|
649
649
|
if (this.type === u._case || this.type === u._default) {
|
|
650
650
|
var a = this.type === u._case;
|
|
@@ -656,7 +656,7 @@ w.parseSwitchStatement = function(t) {
|
|
|
656
656
|
w.parseThrowStatement = function(t) {
|
|
657
657
|
return this.next(), Q.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
|
|
658
658
|
};
|
|
659
|
-
var
|
|
659
|
+
var bs = [];
|
|
660
660
|
w.parseCatchClauseParam = function() {
|
|
661
661
|
var t = this.parseBindingAtom(), e = t.type === "Identifier";
|
|
662
662
|
return this.enterScope(e ? pi : 0), this.checkLValPattern(t, e ? di : Tt), this.expect(u.parenR), t;
|
|
@@ -741,7 +741,7 @@ w.parseClass = function(t, e) {
|
|
|
741
741
|
var a = this.enterClassBody(), o = this.startNode(), f = !1;
|
|
742
742
|
for (o.body = [], this.expect(u.braceL); this.type !== u.braceR; ) {
|
|
743
743
|
var d = this.parseClassElement(t.superClass !== null);
|
|
744
|
-
d && (o.body.push(d), d.type === "MethodDefinition" && d.kind === "constructor" ? (f && this.raiseRecoverable(d.start, "Duplicate constructor in the same class"), f = !0) : d.key && d.key.type === "PrivateIdentifier" &&
|
|
744
|
+
d && (o.body.push(d), d.type === "MethodDefinition" && d.kind === "constructor" ? (f && this.raiseRecoverable(d.start, "Duplicate constructor in the same class"), f = !0) : d.key && d.key.type === "PrivateIdentifier" && Ts(a, d) && this.raiseRecoverable(d.key.start, "Identifier '#" + d.key.name + "' has already been declared"));
|
|
745
745
|
}
|
|
746
746
|
return this.strict = s, this.next(), t.body = this.finishNode(o, "ClassBody"), this.exitClassBody(), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression");
|
|
747
747
|
};
|
|
@@ -778,7 +778,7 @@ w.parseClassMethod = function(t, e, s, a) {
|
|
|
778
778
|
return t.kind === "get" && f.params.length !== 0 && this.raiseRecoverable(f.start, "getter should have no params"), t.kind === "set" && f.params.length !== 1 && this.raiseRecoverable(f.start, "setter should have exactly one param"), t.kind === "set" && f.params[0].type === "RestElement" && this.raiseRecoverable(f.params[0].start, "Setter cannot use rest params"), this.finishNode(t, "MethodDefinition");
|
|
779
779
|
};
|
|
780
780
|
w.parseClassField = function(t) {
|
|
781
|
-
return se(t, "constructor") ? this.raise(t.key.start, "Classes can't have a field named 'constructor'") : t.static && se(t, "prototype") && this.raise(t.key.start, "Classes can't have a static field named 'prototype'"), this.eat(u.eq) ? (this.enterScope(
|
|
781
|
+
return se(t, "constructor") ? this.raise(t.key.start, "Classes can't have a field named 'constructor'") : t.static && se(t, "prototype") && this.raise(t.key.start, "Classes can't have a static field named 'prototype'"), this.eat(u.eq) ? (this.enterScope(Kt | he), t.value = this.parseMaybeAssign(), this.exitScope()) : t.value = null, this.semicolon(), this.finishNode(t, "PropertyDefinition");
|
|
782
782
|
};
|
|
783
783
|
w.parseClassStaticBlock = function(t) {
|
|
784
784
|
t.body = [];
|
|
@@ -807,7 +807,7 @@ w.exitClassBody = function() {
|
|
|
807
807
|
Rt(e, d.name) || (o ? o.used.push(d) : this.raiseRecoverable(d.start, "Private field '#" + d.name + "' must be declared in an enclosing class"));
|
|
808
808
|
}
|
|
809
809
|
};
|
|
810
|
-
function
|
|
810
|
+
function Ts(t, e) {
|
|
811
811
|
var s = e.key.name, a = t[s], o = "true";
|
|
812
812
|
return e.type === "MethodDefinition" && (e.kind === "get" || e.kind === "set") && (o = (e.static ? "s" : "i") + e.kind), a === "iget" && o === "iset" || a === "iset" && o === "iget" || a === "sget" && o === "sset" || a === "sset" && o === "sget" ? (t[s] = "true", !1) : a ? !0 : (t[s] = o, !1);
|
|
813
813
|
}
|
|
@@ -904,7 +904,7 @@ w.parseExportSpecifiers = function(t) {
|
|
|
904
904
|
return e;
|
|
905
905
|
};
|
|
906
906
|
w.parseImport = function(t) {
|
|
907
|
-
return this.next(), this.type === u.string ? (t.specifiers =
|
|
907
|
+
return this.next(), this.type === u.string ? (t.specifiers = bs, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === u.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (t.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
|
|
908
908
|
};
|
|
909
909
|
w.parseImportSpecifier = function() {
|
|
910
910
|
var t = this.startNode();
|
|
@@ -955,7 +955,7 @@ w.parseImportAttribute = function() {
|
|
|
955
955
|
w.parseModuleExportName = function() {
|
|
956
956
|
if (this.options.ecmaVersion >= 13 && this.type === u.string) {
|
|
957
957
|
var t = this.parseLiteral(this.value);
|
|
958
|
-
return
|
|
958
|
+
return ms.test(t.value) && this.raise(t.start, "An export name cannot include a lone surrogate."), t;
|
|
959
959
|
}
|
|
960
960
|
return this.parseIdent(!0);
|
|
961
961
|
};
|
|
@@ -1501,7 +1501,7 @@ _.parseParenItem = function(t) {
|
|
|
1501
1501
|
_.parseParenArrowList = function(t, e, s, a) {
|
|
1502
1502
|
return this.parseArrowExpression(this.startNodeAt(t, e), s, !1, a);
|
|
1503
1503
|
};
|
|
1504
|
-
var
|
|
1504
|
+
var Ss = [];
|
|
1505
1505
|
_.parseNew = function() {
|
|
1506
1506
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1507
1507
|
var t = this.startNode();
|
|
@@ -1512,7 +1512,7 @@ _.parseNew = function() {
|
|
|
1512
1512
|
return t.property = this.parseIdent(!0), t.property.name !== "target" && this.raiseRecoverable(t.property.start, "The only valid meta property for new is 'new.target'"), s && this.raiseRecoverable(t.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(t.start, "'new.target' can only be used in functions and class static block"), this.finishNode(t, "MetaProperty");
|
|
1513
1513
|
}
|
|
1514
1514
|
var a = this.start, o = this.startLoc;
|
|
1515
|
-
return t.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, o, !0, !1), this.eat(u.parenL) ? t.arguments = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments =
|
|
1515
|
+
return t.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, o, !0, !1), this.eat(u.parenL) ? t.arguments = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments = Ss, this.finishNode(t, "NewExpression");
|
|
1516
1516
|
};
|
|
1517
1517
|
_.parseTemplateElement = function(t) {
|
|
1518
1518
|
var e = t.isTagged, s = this.startNode();
|
|
@@ -1670,11 +1670,11 @@ re.curPosition = function() {
|
|
|
1670
1670
|
if (this.options.locations)
|
|
1671
1671
|
return new Ot(this.curLine, this.pos - this.lineStart);
|
|
1672
1672
|
};
|
|
1673
|
-
var wt = H.prototype,
|
|
1673
|
+
var wt = H.prototype, Ps = function(e) {
|
|
1674
1674
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
1675
1675
|
};
|
|
1676
1676
|
wt.enterScope = function(t) {
|
|
1677
|
-
this.scopeStack.push(new
|
|
1677
|
+
this.scopeStack.push(new Ps(t));
|
|
1678
1678
|
};
|
|
1679
1679
|
wt.exitScope = function() {
|
|
1680
1680
|
this.scopeStack.pop();
|
|
@@ -1714,25 +1714,25 @@ wt.currentScope = function() {
|
|
|
1714
1714
|
wt.currentVarScope = function() {
|
|
1715
1715
|
for (var t = this.scopeStack.length - 1; ; t--) {
|
|
1716
1716
|
var e = this.scopeStack[t];
|
|
1717
|
-
if (e.flags & (ue |
|
|
1717
|
+
if (e.flags & (ue | Kt | It))
|
|
1718
1718
|
return e;
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
1721
|
wt.currentThisScope = function() {
|
|
1722
1722
|
for (var t = this.scopeStack.length - 1; ; t--) {
|
|
1723
1723
|
var e = this.scopeStack[t];
|
|
1724
|
-
if (e.flags & (ue |
|
|
1724
|
+
if (e.flags & (ue | Kt | It) && !(e.flags & Le))
|
|
1725
1725
|
return e;
|
|
1726
1726
|
}
|
|
1727
1727
|
};
|
|
1728
|
-
var
|
|
1729
|
-
this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new
|
|
1728
|
+
var Wt = function(e, s, a) {
|
|
1729
|
+
this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new Gt(e, a)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
|
|
1730
1730
|
}, zt = H.prototype;
|
|
1731
1731
|
zt.startNode = function() {
|
|
1732
|
-
return new
|
|
1732
|
+
return new Wt(this, this.start, this.startLoc);
|
|
1733
1733
|
};
|
|
1734
1734
|
zt.startNodeAt = function(t, e) {
|
|
1735
|
-
return new
|
|
1735
|
+
return new Wt(this, t, e);
|
|
1736
1736
|
};
|
|
1737
1737
|
function vi(t, e, s, a) {
|
|
1738
1738
|
return t.type = e, t.end = s, this.options.locations && (t.loc.end = a), this.options.ranges && (t.range[1] = s), t;
|
|
@@ -1744,47 +1744,47 @@ zt.finishNodeAt = function(t, e, s, a) {
|
|
|
1744
1744
|
return vi.call(this, t, e, s, a);
|
|
1745
1745
|
};
|
|
1746
1746
|
zt.copyNode = function(t) {
|
|
1747
|
-
var e = new
|
|
1747
|
+
var e = new Wt(this, t.start, this.startLoc);
|
|
1748
1748
|
for (var s in t)
|
|
1749
1749
|
e[s] = t[s];
|
|
1750
1750
|
return e;
|
|
1751
1751
|
};
|
|
1752
|
-
var
|
|
1752
|
+
var Cs = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", gi = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", bi = gi + " Extended_Pictographic", Ti = bi, Si = Ti + " EBase EComp EMod EPres ExtPict", Pi = Si, ks = Pi, ws = {
|
|
1753
1753
|
9: gi,
|
|
1754
1754
|
10: bi,
|
|
1755
1755
|
11: Ti,
|
|
1756
1756
|
12: Si,
|
|
1757
1757
|
13: Pi,
|
|
1758
|
-
14:
|
|
1759
|
-
},
|
|
1758
|
+
14: ks
|
|
1759
|
+
}, As = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Es = {
|
|
1760
1760
|
9: "",
|
|
1761
1761
|
10: "",
|
|
1762
1762
|
11: "",
|
|
1763
1763
|
12: "",
|
|
1764
1764
|
13: "",
|
|
1765
|
-
14:
|
|
1766
|
-
},
|
|
1765
|
+
14: As
|
|
1766
|
+
}, We = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Ci = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", ki = Ci + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", wi = ki + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Ai = wi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ei = Ai + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Is = Ei + " " + Cs, _s = {
|
|
1767
1767
|
9: Ci,
|
|
1768
1768
|
10: ki,
|
|
1769
1769
|
11: wi,
|
|
1770
1770
|
12: Ai,
|
|
1771
1771
|
13: Ei,
|
|
1772
|
-
14:
|
|
1772
|
+
14: Is
|
|
1773
1773
|
}, Ii = {};
|
|
1774
|
-
function
|
|
1774
|
+
function Ns(t) {
|
|
1775
1775
|
var e = Ii[t] = {
|
|
1776
|
-
binary: kt(
|
|
1777
|
-
binaryOfStrings: kt(
|
|
1776
|
+
binary: kt(ws[t] + " " + We),
|
|
1777
|
+
binaryOfStrings: kt(Es[t]),
|
|
1778
1778
|
nonBinary: {
|
|
1779
|
-
General_Category: kt(
|
|
1780
|
-
Script: kt(
|
|
1779
|
+
General_Category: kt(We),
|
|
1780
|
+
Script: kt(_s[t])
|
|
1781
1781
|
}
|
|
1782
1782
|
};
|
|
1783
1783
|
e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
|
|
1784
1784
|
}
|
|
1785
1785
|
for (var be = 0, ze = [9, 10, 11, 12, 13, 14]; be < ze.length; be += 1) {
|
|
1786
|
-
var
|
|
1787
|
-
|
|
1786
|
+
var Ls = ze[be];
|
|
1787
|
+
Ns(Ls);
|
|
1788
1788
|
}
|
|
1789
1789
|
var C = H.prototype, ae = function(e, s) {
|
|
1790
1790
|
this.parent = e, this.base = s || this;
|
|
@@ -1857,13 +1857,13 @@ C.validateRegExpFlags = function(t) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
this.options.ecmaVersion >= 15 && a && o && this.raise(t.start, "Invalid regular expression flag");
|
|
1859
1859
|
};
|
|
1860
|
-
function
|
|
1860
|
+
function Os(t) {
|
|
1861
1861
|
for (var e in t)
|
|
1862
1862
|
return !0;
|
|
1863
1863
|
return !1;
|
|
1864
1864
|
}
|
|
1865
1865
|
C.validateRegExpPattern = function(t) {
|
|
1866
|
-
this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 &&
|
|
1866
|
+
this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && Os(t.groupNames) && (t.switchN = !0, this.regexp_pattern(t));
|
|
1867
1867
|
};
|
|
1868
1868
|
C.regexp_pattern = function(t) {
|
|
1869
1869
|
t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = !1, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames = /* @__PURE__ */ Object.create(null), t.backReferenceNames.length = 0, t.branchID = null, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(
|
|
@@ -2065,11 +2065,11 @@ C.regexp_eatCapturingGroup = function(t) {
|
|
|
2065
2065
|
return !1;
|
|
2066
2066
|
};
|
|
2067
2067
|
C.regexp_eatModifiers = function(t) {
|
|
2068
|
-
for (var e = "", s = 0; (s = t.current()) !== -1 &&
|
|
2068
|
+
for (var e = "", s = 0; (s = t.current()) !== -1 && Rs(s); )
|
|
2069
2069
|
e += gt(s), t.advance();
|
|
2070
2070
|
return e;
|
|
2071
2071
|
};
|
|
2072
|
-
function
|
|
2072
|
+
function Rs(t) {
|
|
2073
2073
|
return t === 105 || t === 109 || t === 115;
|
|
2074
2074
|
}
|
|
2075
2075
|
C.regexp_eatExtendedAtom = function(t) {
|
|
@@ -2139,16 +2139,16 @@ C.regexp_eatRegExpIdentifierName = function(t) {
|
|
|
2139
2139
|
};
|
|
2140
2140
|
C.regexp_eatRegExpIdentifierStart = function(t) {
|
|
2141
2141
|
var e = t.pos, s = this.options.ecmaVersion >= 11, a = t.current(s);
|
|
2142
|
-
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue),
|
|
2142
|
+
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue), Ms(a) ? (t.lastIntValue = a, !0) : (t.pos = e, !1);
|
|
2143
2143
|
};
|
|
2144
|
-
function
|
|
2144
|
+
function Ms(t) {
|
|
2145
2145
|
return ft(t, !0) || t === 36 || t === 95;
|
|
2146
2146
|
}
|
|
2147
2147
|
C.regexp_eatRegExpIdentifierPart = function(t) {
|
|
2148
2148
|
var e = t.pos, s = this.options.ecmaVersion >= 11, a = t.current(s);
|
|
2149
|
-
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue),
|
|
2149
|
+
return t.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (a = t.lastIntValue), Ds(a) ? (t.lastIntValue = a, !0) : (t.pos = e, !1);
|
|
2150
2150
|
};
|
|
2151
|
-
function
|
|
2151
|
+
function Ds(t) {
|
|
2152
2152
|
return vt(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
|
|
2153
2153
|
}
|
|
2154
2154
|
C.regexp_eatAtomEscape = function(t) {
|
|
@@ -2238,13 +2238,13 @@ C.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
|
|
|
2238
2238
|
) && this.regexp_eatHexDigits(t) && t.eat(
|
|
2239
2239
|
125
|
|
2240
2240
|
/* } */
|
|
2241
|
-
) &&
|
|
2241
|
+
) && Vs(t.lastIntValue))
|
|
2242
2242
|
return !0;
|
|
2243
2243
|
a && t.raise("Invalid unicode escape"), t.pos = s;
|
|
2244
2244
|
}
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
};
|
|
2247
|
-
function
|
|
2247
|
+
function Vs(t) {
|
|
2248
2248
|
return t >= 0 && t <= 1114111;
|
|
2249
2249
|
}
|
|
2250
2250
|
C.regexp_eatIdentityEscape = function(t) {
|
|
@@ -2270,7 +2270,7 @@ C.regexp_eatDecimalEscape = function(t) {
|
|
|
2270
2270
|
var Li = 0, bt = 1, ut = 2;
|
|
2271
2271
|
C.regexp_eatCharacterClassEscape = function(t) {
|
|
2272
2272
|
var e = t.current();
|
|
2273
|
-
if (
|
|
2273
|
+
if (Fs(e))
|
|
2274
2274
|
return t.lastIntValue = -1, t.advance(), bt;
|
|
2275
2275
|
var s = !1;
|
|
2276
2276
|
if (t.switchU && this.options.ecmaVersion >= 9 && ((s = e === 80) || e === 112)) {
|
|
@@ -2288,7 +2288,7 @@ C.regexp_eatCharacterClassEscape = function(t) {
|
|
|
2288
2288
|
}
|
|
2289
2289
|
return Li;
|
|
2290
2290
|
};
|
|
2291
|
-
function
|
|
2291
|
+
function Fs(t) {
|
|
2292
2292
|
return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
|
|
2293
2293
|
}
|
|
2294
2294
|
C.regexp_eatUnicodePropertyValueExpression = function(t) {
|
|
@@ -2330,11 +2330,11 @@ function Oi(t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
C.regexp_eatUnicodePropertyValue = function(t) {
|
|
2332
2332
|
var e = 0;
|
|
2333
|
-
for (t.lastStringValue = "";
|
|
2333
|
+
for (t.lastStringValue = ""; Bs(e = t.current()); )
|
|
2334
2334
|
t.lastStringValue += gt(e), t.advance();
|
|
2335
2335
|
return t.lastStringValue !== "";
|
|
2336
2336
|
};
|
|
2337
|
-
function
|
|
2337
|
+
function Bs(t) {
|
|
2338
2338
|
return Oi(t) || pe(t);
|
|
2339
2339
|
}
|
|
2340
2340
|
C.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
|
|
@@ -2534,19 +2534,19 @@ C.regexp_eatClassSetCharacter = function(t) {
|
|
|
2534
2534
|
/* b */
|
|
2535
2535
|
) ? (t.lastIntValue = 8, !0) : (t.pos = e, !1);
|
|
2536
2536
|
var s = t.current();
|
|
2537
|
-
return s < 0 || s === t.lookahead() &&
|
|
2537
|
+
return s < 0 || s === t.lookahead() && js(s) || Us(s) ? !1 : (t.advance(), t.lastIntValue = s, !0);
|
|
2538
2538
|
};
|
|
2539
|
-
function
|
|
2539
|
+
function js(t) {
|
|
2540
2540
|
return t === 33 || t >= 35 && t <= 38 || t >= 42 && t <= 44 || t === 46 || t >= 58 && t <= 64 || t === 94 || t === 96 || t === 126;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function Us(t) {
|
|
2543
2543
|
return t === 40 || t === 41 || t === 45 || t === 47 || t >= 91 && t <= 93 || t >= 123 && t <= 125;
|
|
2544
2544
|
}
|
|
2545
2545
|
C.regexp_eatClassSetReservedPunctuator = function(t) {
|
|
2546
2546
|
var e = t.current();
|
|
2547
|
-
return
|
|
2547
|
+
return qs(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
|
|
2548
2548
|
};
|
|
2549
|
-
function
|
|
2549
|
+
function qs(t) {
|
|
2550
2550
|
return t === 33 || t === 35 || t === 37 || t === 38 || t === 44 || t === 45 || t >= 58 && t <= 62 || t === 64 || t === 96 || t === 126;
|
|
2551
2551
|
}
|
|
2552
2552
|
C.regexp_eatClassControlLetter = function(t) {
|
|
@@ -2617,7 +2617,7 @@ C.regexp_eatFixedHexDigits = function(t, e) {
|
|
|
2617
2617
|
return !0;
|
|
2618
2618
|
};
|
|
2619
2619
|
var le = function(e) {
|
|
2620
|
-
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new
|
|
2620
|
+
this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Gt(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
|
|
2621
2621
|
}, R = H.prototype;
|
|
2622
2622
|
R.next = function(t) {
|
|
2623
2623
|
!t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new le(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
@@ -2924,7 +2924,7 @@ R.readInt = function(t, e, s) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
return a && v === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === f || e != null && this.pos - f !== e ? null : d;
|
|
2926
2926
|
};
|
|
2927
|
-
function
|
|
2927
|
+
function Hs(t, e) {
|
|
2928
2928
|
return e ? parseInt(t, 8) : parseFloat(t.replace(/_/g, ""));
|
|
2929
2929
|
}
|
|
2930
2930
|
function Vi(t) {
|
|
@@ -2947,7 +2947,7 @@ R.readNumber = function(t) {
|
|
|
2947
2947
|
return ++this.pos, ft(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(u.num, o);
|
|
2948
2948
|
}
|
|
2949
2949
|
s && /[89]/.test(this.input.slice(e, this.pos)) && (s = !1), a === 46 && !s && (++this.pos, this.readInt(10), a = this.input.charCodeAt(this.pos)), (a === 69 || a === 101) && !s && (a = this.input.charCodeAt(++this.pos), (a === 43 || a === 45) && ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), ft(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2950
|
-
var f =
|
|
2950
|
+
var f = Hs(this.input.slice(e, this.pos), s);
|
|
2951
2951
|
return this.finishToken(u.num, f);
|
|
2952
2952
|
};
|
|
2953
2953
|
R.readCodePoint = function() {
|
|
@@ -3126,9 +3126,9 @@ H.acorn = {
|
|
|
3126
3126
|
version: Bi,
|
|
3127
3127
|
defaultOptions: ee,
|
|
3128
3128
|
Position: Ot,
|
|
3129
|
-
SourceLocation:
|
|
3129
|
+
SourceLocation: Gt,
|
|
3130
3130
|
getLineInfo: _e,
|
|
3131
|
-
Node:
|
|
3131
|
+
Node: Wt,
|
|
3132
3132
|
TokenType: O,
|
|
3133
3133
|
tokTypes: u,
|
|
3134
3134
|
keywordTypes: Lt,
|
|
@@ -3142,10 +3142,10 @@ H.acorn = {
|
|
|
3142
3142
|
lineBreakG: oi,
|
|
3143
3143
|
nonASCIIwhitespace: Ie
|
|
3144
3144
|
};
|
|
3145
|
-
function
|
|
3145
|
+
function $s(t, e) {
|
|
3146
3146
|
return H.parse(t, e);
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function Gs(t, e, s) {
|
|
3149
3149
|
return H.parseExpressionAt(t, e, s);
|
|
3150
3150
|
}
|
|
3151
3151
|
function Ks(t, e) {
|
|
@@ -3153,10 +3153,10 @@ function Ks(t, e) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3155
3155
|
__proto__: null,
|
|
3156
|
-
Node:
|
|
3156
|
+
Node: Wt,
|
|
3157
3157
|
Parser: H,
|
|
3158
3158
|
Position: Ot,
|
|
3159
|
-
SourceLocation:
|
|
3159
|
+
SourceLocation: Gt,
|
|
3160
3160
|
TokContext: X,
|
|
3161
3161
|
Token: le,
|
|
3162
3162
|
TokenType: O,
|
|
@@ -3169,8 +3169,8 @@ const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3169
3169
|
lineBreak: Q,
|
|
3170
3170
|
lineBreakG: oi,
|
|
3171
3171
|
nonASCIIwhitespace: Ie,
|
|
3172
|
-
parse:
|
|
3173
|
-
parseExpressionAt:
|
|
3172
|
+
parse: $s,
|
|
3173
|
+
parseExpressionAt: Gs,
|
|
3174
3174
|
tokContexts: F,
|
|
3175
3175
|
tokTypes: u,
|
|
3176
3176
|
tokenizer: Ks,
|
|
@@ -3237,9 +3237,9 @@ var st = !0;
|
|
|
3237
3237
|
function rt(t, e) {
|
|
3238
3238
|
return e === void 0 && (e = {}), new O("name", e);
|
|
3239
3239
|
}
|
|
3240
|
-
var
|
|
3241
|
-
function
|
|
3242
|
-
var e =
|
|
3240
|
+
var zs = /* @__PURE__ */ new WeakMap();
|
|
3241
|
+
function Xs(t) {
|
|
3242
|
+
var e = zs.get(t.Parser.acorn || t);
|
|
3243
3243
|
if (!e) {
|
|
3244
3244
|
var s = { assert: rt(0, { startsExpr: st }), asserts: rt(0, { startsExpr: st }), global: rt(0, { startsExpr: st }), keyof: rt(0, { startsExpr: st }), readonly: rt(0, { startsExpr: st }), unique: rt(0, { startsExpr: st }), abstract: rt(0, { startsExpr: st }), declare: rt(0, { startsExpr: st }), enum: rt(0, { startsExpr: st }), module: rt(0, { startsExpr: st }), namespace: rt(0, { startsExpr: st }), interface: rt(0, { startsExpr: st }), type: rt(0, { startsExpr: st }) }, a = { at: new O("@"), jsxName: new O("jsxName"), jsxText: new O("jsxText", { beforeExpr: !0 }), jsxTagStart: new O("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new O("jsxTagEnd") }, o = { tc_oTag: new X("<tag", !1, !1), tc_cTag: new X("</tag", !1, !1), tc_expr: new X("<tag>...</tag>", !0, !0) }, f = new RegExp("^(?:" + Object.keys(s).join("|") + ")$");
|
|
3245
3245
|
a.jsxTagStart.updateContext = function() {
|
|
@@ -3263,10 +3263,10 @@ function zs(t) {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
return e;
|
|
3265
3265
|
}
|
|
3266
|
-
var Bt = 1024,
|
|
3266
|
+
var Bt = 1024, Qs = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), Ye = new RegExp("(?=(" + Qs.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), jt = function() {
|
|
3267
3267
|
this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
3268
3268
|
};
|
|
3269
|
-
function
|
|
3269
|
+
function Js(t, e) {
|
|
3270
3270
|
var s = e.key.name, a = t[s], o = "true";
|
|
3271
3271
|
return e.type !== "MethodDefinition" || e.kind !== "get" && e.kind !== "set" || (o = (e.static ? "s" : "i") + e.kind), a === "iget" && o === "iset" || a === "iset" && o === "iget" || a === "sget" && o === "sset" || a === "sset" && o === "sget" ? (t[s] = "true", !1) : !!a || (t[s] = o, !1);
|
|
3272
3272
|
}
|
|
@@ -3311,7 +3311,7 @@ var A = { AbstractMethodHasImplementation: function(t) {
|
|
|
3311
3311
|
return "Single type parameter " + e + " should have a trailing comma. Example usage: <" + e + ",>.";
|
|
3312
3312
|
}, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", GenericsEndWithComma: "Trailing comma is not allowed at the end of generics.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: function(t) {
|
|
3313
3313
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + t.type + ".";
|
|
3314
|
-
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." },
|
|
3314
|
+
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, Ys = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, Zs = /^[\da-fA-F]+$/, tr = /^\d+$/;
|
|
3315
3315
|
function qt(t) {
|
|
3316
3316
|
return t && (t.type === "JSXIdentifier" ? t.name : t.type === "JSXNamespacedName" ? t.namespace.name + ":" + t.name.name : t.type === "JSXMemberExpression" ? qt(t.object) + "." + qt(t.property) : void 0);
|
|
3317
3317
|
}
|
|
@@ -3319,16 +3319,16 @@ var Te = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
|
3319
3319
|
function ti(t) {
|
|
3320
3320
|
if (!t) throw new Error("Assert fail");
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function er(t) {
|
|
3323
3323
|
return t === "accessor";
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function ir(t) {
|
|
3326
3326
|
return t === "in" || t === "out";
|
|
3327
3327
|
}
|
|
3328
3328
|
function Se(t, e) {
|
|
3329
3329
|
return 2 | (t ? 4 : 0) | (e ? 8 : 0);
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function sr(t) {
|
|
3332
3332
|
if (t.type !== "MemberExpression") return !1;
|
|
3333
3333
|
var e = t.property;
|
|
3334
3334
|
return (!t.computed || !(e.type !== "TemplateLiteral" || e.expressions.length > 0)) && ji(t.object);
|
|
@@ -3339,11 +3339,11 @@ function ji(t) {
|
|
|
3339
3339
|
function ei(t) {
|
|
3340
3340
|
return t === "private" || t === "public" || t === "protected";
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function rr(t) {
|
|
3343
3343
|
var e = {}, s = e.dts, a = s !== void 0 && s, o = e.allowSatisfies, f = o !== void 0 && o;
|
|
3344
3344
|
return function(d) {
|
|
3345
|
-
var v = d.acorn || Ws, g =
|
|
3346
|
-
function
|
|
3345
|
+
var v = d.acorn || Ws, g = Xs(v), h = v.tokTypes, P = v.keywordTypes, N = v.isIdentifierStart, B = v.lineBreak, nt = v.isNewLine, lt = v.tokContexts, _t = v.isIdentifierChar, I = g.tokTypes, Y = g.tokContexts, fe = g.keywordsRegExp, Hi = g.tokenIsLiteralPropertyName, $i = g.tokenIsTemplate, Gi = g.tokenIsTSDeclarationStart, V = g.tokenIsIdentifier, Xt = g.tokenIsKeywordOrIdentifier, Ki = g.tokenIsTSTypeOperator;
|
|
3346
|
+
function Wi(S, Z, z) {
|
|
3347
3347
|
z === void 0 && (z = S.length);
|
|
3348
3348
|
for (var $ = Z; $ < z; $++) {
|
|
3349
3349
|
var D = S.charCodeAt($);
|
|
@@ -3435,7 +3435,7 @@ function sr(t) {
|
|
|
3435
3435
|
T !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
|
|
3436
3436
|
for (var E = ++this.pos; this.pos < this.input.length && b++ < 10; ) {
|
|
3437
3437
|
if ((T = this.input[this.pos++]) === ";") {
|
|
3438
|
-
x[0] === "#" ? x[1] === "x" ? (x = x.substr(2),
|
|
3438
|
+
x[0] === "#" ? x[1] === "x" ? (x = x.substr(2), Zs.test(x) && (y = String.fromCharCode(parseInt(x, 16)))) : (x = x.substr(1), tr.test(x) && (y = String.fromCharCode(parseInt(x, 10)))) : y = Ys[x];
|
|
3439
3439
|
break;
|
|
3440
3440
|
}
|
|
3441
3441
|
x += T;
|
|
@@ -3694,7 +3694,7 @@ function sr(t) {
|
|
|
3694
3694
|
var i;
|
|
3695
3695
|
this.isLookahead || (i = this.options.onComment && this.curPosition());
|
|
3696
3696
|
var r = this.pos, n = this.input.indexOf("*/", this.pos += 2);
|
|
3697
|
-
if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var c, l = r; (c =
|
|
3697
|
+
if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var c, l = r; (c = Wi(this.input, l, this.pos)) > -1; ) ++this.curLine, l = this.lineStart = c;
|
|
3698
3698
|
this.isLookahead || this.options.onComment && this.options.onComment(!0, this.input.slice(r + 2, n), r, this.pos, i, this.curPosition());
|
|
3699
3699
|
}, p.skipLineComment = function(i) {
|
|
3700
3700
|
var r, n = this.pos;
|
|
@@ -4127,7 +4127,7 @@ function sr(t) {
|
|
|
4127
4127
|
return i;
|
|
4128
4128
|
}, p.tsParseTypeOperatorOrHigher = function() {
|
|
4129
4129
|
var i = this;
|
|
4130
|
-
return
|
|
4130
|
+
return Ki(this.type) && !this.containsEsc ? this.tsParseTypeOperator() : this.isContextual("infer") ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(function() {
|
|
4131
4131
|
return i.tsParseArrayTypeOrHigher();
|
|
4132
4132
|
});
|
|
4133
4133
|
}, p.tsParseIntersectionTypeOrHigher = function() {
|
|
@@ -4201,14 +4201,14 @@ function sr(t) {
|
|
|
4201
4201
|
r[m] = n[m];
|
|
4202
4202
|
}
|
|
4203
4203
|
}, p.tsParseModifiers = function(i) {
|
|
4204
|
-
for (var r = this, n = i.modified, c = i.allowedModifiers, l = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, T = function(U, j, q,
|
|
4205
|
-
j === q && n[
|
|
4206
|
-
}, E = function(U, j, q,
|
|
4207
|
-
(n[q] && j ===
|
|
4204
|
+
for (var r = this, n = i.modified, c = i.allowedModifiers, l = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, T = function(U, j, q, G) {
|
|
4205
|
+
j === q && n[G] && r.raise(U.column, A.InvalidModifiersOrder({ orderedModifiers: [q, G] }));
|
|
4206
|
+
}, E = function(U, j, q, G) {
|
|
4207
|
+
(n[q] && j === G || n[G] && j === q) && r.raise(U.column, A.IncompatibleModifiers({ modifiers: [q, G] }));
|
|
4208
4208
|
}; ; ) {
|
|
4209
4209
|
var L = this.startLoc, k = this.tsParseModifier(c.concat(l ?? []), m);
|
|
4210
4210
|
if (!k) break;
|
|
4211
|
-
ei(k) ? n.accessibility ? this.raise(this.start, A.DuplicateAccessibilityModifier()) : (T(L, k, k, "override"), T(L, k, k, "static"), T(L, k, k, "readonly"), T(L, k, k, "accessor"), b.accessibility = k, n.accessibility = k) :
|
|
4211
|
+
ei(k) ? n.accessibility ? this.raise(this.start, A.DuplicateAccessibilityModifier()) : (T(L, k, k, "override"), T(L, k, k, "static"), T(L, k, k, "readonly"), T(L, k, k, "accessor"), b.accessibility = k, n.accessibility = k) : ir(k) ? n[k] ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (T(L, k, "in", "out"), b[k] = k, n[k] = !0) : er(k) ? n[k] ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (E(L, k, "accessor", "readonly"), E(L, k, "accessor", "static"), E(L, k, "accessor", "override"), b[k] = k, n[k] = !0) : Object.hasOwnProperty.call(n, k) ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (T(L, k, "static", "readonly"), T(L, k, "static", "override"), T(L, k, "override", "readonly"), T(L, k, "abstract", "override"), E(L, k, "declare", "override"), E(L, k, "static", "abstract"), b[k] = k, n[k] = !0), l != null && l.includes(k) && this.raise(this.start, x);
|
|
4212
4212
|
}
|
|
4213
4213
|
return b;
|
|
4214
4214
|
}, p.tsParseInOutModifiers = function(i) {
|
|
@@ -4284,7 +4284,7 @@ function sr(t) {
|
|
|
4284
4284
|
if (!this.hasFollowingLineBreak()) return i.abstract = !0, this.tsParseInterfaceDeclaration(i);
|
|
4285
4285
|
} else this.unexpected(i.start);
|
|
4286
4286
|
}, p.tsIsDeclarationStart = function() {
|
|
4287
|
-
return
|
|
4287
|
+
return Gi(this.type);
|
|
4288
4288
|
}, p.tsParseExpressionStatement = function(i, r) {
|
|
4289
4289
|
switch (r.name) {
|
|
4290
4290
|
case "declare":
|
|
@@ -4553,7 +4553,7 @@ function sr(t) {
|
|
|
4553
4553
|
if (!c) return l;
|
|
4554
4554
|
for (var m, y = Je(l.declarations); !(m = y()).done; ) {
|
|
4555
4555
|
var x = m.value, b = x.init;
|
|
4556
|
-
b && (r !== "const" || x.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !
|
|
4556
|
+
b && (r !== "const" || x.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !sr(b) && this.raise(b.start, A.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
4557
4557
|
}
|
|
4558
4558
|
return l;
|
|
4559
4559
|
}, p.parseStatement = function(i, r, n) {
|
|
@@ -4693,8 +4693,8 @@ function sr(t) {
|
|
|
4693
4693
|
if (E = this.cloneCurLookaheadState(), !(L = this.tryParse(function() {
|
|
4694
4694
|
return j.parseMaybeAssignOrigin(i, r, n);
|
|
4695
4695
|
}, E)).error) return L.node;
|
|
4696
|
-
var q = this.context,
|
|
4697
|
-
|
|
4696
|
+
var q = this.context, G = q[q.length - 1];
|
|
4697
|
+
G === g.tokContexts.tc_oTag && q[q.length - 2] === g.tokContexts.tc_expr ? (q.pop(), q.pop()) : G !== g.tokContexts.tc_oTag && G !== g.tokContexts.tc_expr || q.pop();
|
|
4698
4698
|
}
|
|
4699
4699
|
if (!((c = L) != null && c.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(i, r, n);
|
|
4700
4700
|
E && !this.compareLookaheadState(E, this.getCurLookaheadState()) || (E = this.cloneCurLookaheadState());
|
|
@@ -4847,9 +4847,9 @@ function sr(t) {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
E.push(this.parseMaybeAssign(r, U, this.parseParenItem));
|
|
4849
4849
|
}
|
|
4850
|
-
var
|
|
4850
|
+
var G = this.lastTokEnd, it = this.lastTokEndLoc;
|
|
4851
4851
|
if (this.expect(h.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(h.arrow)) return this.checkPatternErrors(U, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = j, this.awaitPos = q, this.parseParenArrowList(c, l, E, r);
|
|
4852
|
-
E.length && !k || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(U, !0), this.yieldPos = j || this.yieldPos, this.awaitPos = q || this.awaitPos, E.length > 1 ? ((n = this.startNodeAt(b, T)).expressions = E, this.finishNodeAt(n, "SequenceExpression",
|
|
4852
|
+
E.length && !k || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(U, !0), this.yieldPos = j || this.yieldPos, this.awaitPos = q || this.awaitPos, E.length > 1 ? ((n = this.startNodeAt(b, T)).expressions = E, this.finishNodeAt(n, "SequenceExpression", G, it)) : n = E[0];
|
|
4853
4853
|
} else n = this.parseParenExpression();
|
|
4854
4854
|
if (this.options.preserveParens) {
|
|
4855
4855
|
var Pt = this.startNodeAt(c, l);
|
|
@@ -4919,8 +4919,8 @@ function sr(t) {
|
|
|
4919
4919
|
c && j && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
4920
4920
|
var q = this.eat(h.bracketL);
|
|
4921
4921
|
if (q || j && this.type !== h.parenL && this.type !== h.backQuote || this.eat(h.dot)) {
|
|
4922
|
-
var
|
|
4923
|
-
|
|
4922
|
+
var G = this.startNodeAt(r, n);
|
|
4923
|
+
G.object = i, q ? (G.property = this.parseExpression(), this.expect(h.bracketR)) : G.property = this.type === h.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), G.computed = !!q, U && (G.optional = j), i = this.finishNode(G, "MemberExpression");
|
|
4924
4924
|
} else if (!c && this.eat(h.parenL)) {
|
|
4925
4925
|
var it = this.maybeInArrowParameters;
|
|
4926
4926
|
this.maybeInArrowParameters = !0;
|
|
@@ -4970,7 +4970,7 @@ function sr(t) {
|
|
|
4970
4970
|
for (this.expect(h.braceL); this.type !== h.braceR; ) if (this.match(I.at)) x.push(this.parseDecorator());
|
|
4971
4971
|
else {
|
|
4972
4972
|
var b = this.parseClassElement(i.superClass !== null);
|
|
4973
|
-
x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" &&
|
|
4973
|
+
x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" && Js(l, b) && this.raiseRecoverable(b.key.start, "Identifier '#" + b.key.name + "' has already been declared"));
|
|
4974
4974
|
}
|
|
4975
4975
|
return this.strict = c, this.next(), x.length && this.raise(this.start, "Decorators must be attached to a class element."), i.body = this.finishNode(m, "ClassBody"), this.exitClassBody(), this.finishNode(i, r ? "ClassDeclaration" : "ClassExpression");
|
|
4976
4976
|
} finally {
|
|
@@ -5088,8 +5088,8 @@ function sr(t) {
|
|
|
5088
5088
|
return zi;
|
|
5089
5089
|
};
|
|
5090
5090
|
}
|
|
5091
|
-
const
|
|
5092
|
-
async function
|
|
5091
|
+
const ar = is(ss);
|
|
5092
|
+
async function nr(t) {
|
|
5093
5093
|
let e;
|
|
5094
5094
|
try {
|
|
5095
5095
|
e = await at.readdir(t, { withFileTypes: !0 });
|
|
@@ -5109,7 +5109,7 @@ async function ar(t) {
|
|
|
5109
5109
|
);
|
|
5110
5110
|
}
|
|
5111
5111
|
function De(t) {
|
|
5112
|
-
const s = H.extend(
|
|
5112
|
+
const s = H.extend(rr()).parse(t, {
|
|
5113
5113
|
ecmaVersion: "latest",
|
|
5114
5114
|
sourceType: "module",
|
|
5115
5115
|
locations: !0
|
|
@@ -5124,11 +5124,11 @@ function De(t) {
|
|
|
5124
5124
|
}
|
|
5125
5125
|
async function ct(t, e, s = [], a) {
|
|
5126
5126
|
const o = `${e} ${s.join(" ")}`;
|
|
5127
|
-
t !== void 0 &&
|
|
5128
|
-
const { stdout: f, stderr: d } = await
|
|
5127
|
+
t !== void 0 && K(`${t} - exec(${o})`);
|
|
5128
|
+
const { stdout: f, stderr: d } = await ar(o);
|
|
5129
5129
|
a === void 0 ? f.trim() && console.log(f.trim()) : await at.writeFile(a, f.trim(), "utf8"), d.trim() && console.error(d.trim());
|
|
5130
5130
|
}
|
|
5131
|
-
async function
|
|
5131
|
+
async function or(t, e) {
|
|
5132
5132
|
return at.readdir(t, e);
|
|
5133
5133
|
}
|
|
5134
5134
|
async function Ve() {
|
|
@@ -5143,7 +5143,7 @@ function St(t) {
|
|
|
5143
5143
|
✅ ${t}
|
|
5144
5144
|
`);
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function K(t) {
|
|
5147
5147
|
console.info(`
|
|
5148
5148
|
${t}
|
|
5149
5149
|
`);
|
|
@@ -5154,7 +5154,7 @@ async function et(t) {
|
|
|
5154
5154
|
async function At(t) {
|
|
5155
5155
|
return await at.readFile(t, "utf8");
|
|
5156
5156
|
}
|
|
5157
|
-
async function
|
|
5157
|
+
async function hr(t) {
|
|
5158
5158
|
try {
|
|
5159
5159
|
await at.unlink(t);
|
|
5160
5160
|
} catch (e) {
|
|
@@ -5162,8 +5162,8 @@ async function or(t) {
|
|
|
5162
5162
|
}
|
|
5163
5163
|
}
|
|
5164
5164
|
async function dt(t, e, s = [], a = !1) {
|
|
5165
|
-
return
|
|
5166
|
-
|
|
5165
|
+
return K(`${t} - spawn(${e} ${s.join(" ")})`), new Promise((o, f) => {
|
|
5166
|
+
rs(e, s, { stdio: "inherit" }).on("close", (v) => {
|
|
5167
5167
|
v === 0 || a ? o() : f(new Error(`${e} exited with code ${v}`));
|
|
5168
5168
|
});
|
|
5169
5169
|
});
|
|
@@ -5194,7 +5194,7 @@ function Ae(t, e) {
|
|
|
5194
5194
|
else o && typeof o == "object" && typeof o.type == "string" && Ae(o, e);
|
|
5195
5195
|
}
|
|
5196
5196
|
}
|
|
5197
|
-
async function
|
|
5197
|
+
async function ur() {
|
|
5198
5198
|
const t = await et("config.json"), e = {
|
|
5199
5199
|
body: JSON.stringify(t),
|
|
5200
5200
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5213,7 +5213,7 @@ async function ii(t) {
|
|
|
5213
5213
|
async function si(t, e) {
|
|
5214
5214
|
const s = `v${t.version}`;
|
|
5215
5215
|
async function a(o, f = "") {
|
|
5216
|
-
const d = await
|
|
5216
|
+
const d = await or(o, { withFileTypes: !0 });
|
|
5217
5217
|
for (const v of d) {
|
|
5218
5218
|
const g = `${o}/${v.name}`, h = f ? `${f}/${v.name}` : v.name;
|
|
5219
5219
|
if (v.isDirectory()) continue;
|
|
@@ -5223,7 +5223,7 @@ async function si(t, e) {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
await a("dist");
|
|
5225
5225
|
}
|
|
5226
|
-
const
|
|
5226
|
+
const cr = [
|
|
5227
5227
|
{ idPrefix: "datapos-app-nuxt", typeId: "app", publish: !1, uploadGroupName: void 0 },
|
|
5228
5228
|
{ idPrefix: "datapos-api", typeId: "api", publish: !1, uploadGroupName: void 0 },
|
|
5229
5229
|
{ idPrefix: "datapos-connector", typeId: "connector", publish: !0, uploadGroupName: "connectors" },
|
|
@@ -5235,42 +5235,42 @@ const ur = [
|
|
|
5235
5235
|
{ idPrefix: "datapos-shared", typeId: "shared", publish: !0, uploadGroupName: void 0 },
|
|
5236
5236
|
{ idPrefix: "datapos-tool", typeId: "tool", publish: !0, uploadGroupName: "tools" }
|
|
5237
5237
|
];
|
|
5238
|
-
async function
|
|
5238
|
+
async function Rr() {
|
|
5239
5239
|
try {
|
|
5240
5240
|
xt("Build Project"), await dt("1️⃣ Bundle project", "vite", ["build"]), St("Project built.");
|
|
5241
5241
|
} catch (t) {
|
|
5242
5242
|
console.error("❌ Error building project.", t), process.exit(1);
|
|
5243
5243
|
}
|
|
5244
5244
|
}
|
|
5245
|
-
async function
|
|
5245
|
+
async function Mr() {
|
|
5246
5246
|
try {
|
|
5247
5247
|
xt("Release Project"), await Ve();
|
|
5248
5248
|
const t = await et("package.json");
|
|
5249
5249
|
let e = await et("config.json");
|
|
5250
5250
|
await qi("1️⃣", t);
|
|
5251
|
-
const s =
|
|
5251
|
+
const s = cr.find((a) => e.id.startsWith(a.idPrefix));
|
|
5252
5252
|
if (!s) throw new Error(`Failed to locate module type configuration for identifier '${e.id}'.`);
|
|
5253
5253
|
switch (s.typeId) {
|
|
5254
5254
|
case "connector":
|
|
5255
|
-
e = await
|
|
5255
|
+
e = await lr("2️⃣", t);
|
|
5256
5256
|
break;
|
|
5257
5257
|
case "context":
|
|
5258
|
-
e = await
|
|
5258
|
+
e = await fr("2️⃣", t);
|
|
5259
5259
|
break;
|
|
5260
5260
|
case "presenter":
|
|
5261
|
-
e = await
|
|
5261
|
+
e = await dr("2️⃣", t);
|
|
5262
5262
|
break;
|
|
5263
5263
|
default:
|
|
5264
|
-
e = await
|
|
5264
|
+
e = await pr("2️⃣", t);
|
|
5265
5265
|
}
|
|
5266
5266
|
if (await dt("3️⃣ Bundle project", "vite", ["build"]), await ct("4️⃣ Stage changes", "git", ["add", "."]), await ct("5️⃣ Commit changes", "git", ["commit", "-m", `"v${t.version}"`]), await ct("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), s.typeId === "app")
|
|
5267
|
-
|
|
5267
|
+
K("7️⃣ Register module"), await ur();
|
|
5268
5268
|
else if (s.typeId === "engine")
|
|
5269
|
-
|
|
5269
|
+
K("7️⃣ Register module"), await si(t, `datapos-engine-eu/${s.uploadGroupName}`), await ii(e);
|
|
5270
5270
|
else if (s.uploadGroupName === void 0)
|
|
5271
|
-
|
|
5271
|
+
K("7️⃣ Registration NOT required.");
|
|
5272
5272
|
else {
|
|
5273
|
-
|
|
5273
|
+
K("7️⃣ Register module");
|
|
5274
5274
|
const a = e.id.split("-").slice(2).join("-");
|
|
5275
5275
|
await si(t, `datapos-engine-eu/${s.uploadGroupName}/${a}`), await ii(e);
|
|
5276
5276
|
}
|
|
@@ -5280,25 +5280,25 @@ async function Rr() {
|
|
|
5280
5280
|
await $t(a, `registry=https://registry.npmjs.org/
|
|
5281
5281
|
//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await dt("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]);
|
|
5282
5282
|
} finally {
|
|
5283
|
-
await
|
|
5283
|
+
await hr(a);
|
|
5284
5284
|
}
|
|
5285
5285
|
} else
|
|
5286
|
-
|
|
5286
|
+
K(`8️⃣ Publishing NOT required for package with type identifier of '${s.typeId}'.`);
|
|
5287
5287
|
St(`Project version '${t.version}' released.`);
|
|
5288
5288
|
} catch (t) {
|
|
5289
5289
|
console.error("❌ Error releasing project.", t), process.exit(1);
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
|
-
async function
|
|
5292
|
+
async function Dr() {
|
|
5293
5293
|
try {
|
|
5294
5294
|
xt("Synchronise Project with GitHub");
|
|
5295
5295
|
const t = await et("package.json");
|
|
5296
|
-
|
|
5296
|
+
K("Bump project version"), await qi("1️⃣", t), await ct("2️⃣ Stage changes", "git", ["add", "."]), await ct("3️⃣ Commit changes", "git", ["commit", "-m", `"v${t.version}"`]), await ct("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), St(`Project version '${t.version}' synchronised with GitHub.`);
|
|
5297
5297
|
} catch (t) {
|
|
5298
5298
|
console.error("❌ Error synchronising project with GitHub.", t), process.exit(1);
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
|
-
function
|
|
5301
|
+
function Vr() {
|
|
5302
5302
|
try {
|
|
5303
5303
|
xt("Test Project"), console.error(`
|
|
5304
5304
|
❌ No tests implemented.
|
|
@@ -5307,61 +5307,61 @@ function Dr() {
|
|
|
5307
5307
|
console.error("❌ Error testing project.", t), process.exit(1);
|
|
5308
5308
|
}
|
|
5309
5309
|
}
|
|
5310
|
-
async function
|
|
5311
|
-
|
|
5310
|
+
async function pr(t, e) {
|
|
5311
|
+
K(`${t} Build project configuration`);
|
|
5312
5312
|
const s = await et("config.json");
|
|
5313
5313
|
return e.name != null && (s.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (s.version = e.version), await oe("config.json", s), s;
|
|
5314
5314
|
}
|
|
5315
|
-
async function
|
|
5316
|
-
|
|
5317
|
-
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(
|
|
5315
|
+
async function lr(t, e) {
|
|
5316
|
+
K(`${t} Build connector project configuration`);
|
|
5317
|
+
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(Yi, s);
|
|
5318
5318
|
if (!o.success)
|
|
5319
5319
|
throw console.error("❌ Configuration is invalid:"), console.table(o.issues), new Error("Configuration is invalid.");
|
|
5320
|
-
const f = De(a), d =
|
|
5320
|
+
const f = De(a), d = mr(f);
|
|
5321
5321
|
return await Fe(e, s, f, d);
|
|
5322
5322
|
}
|
|
5323
5323
|
async function Fe(t, e, s, a) {
|
|
5324
5324
|
return s.length > 0 ? (console.info(`ℹ️ Implements ${s.length} operations:`), console.table(s)) : console.warn("⚠️ Implements no operations."), a === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${a}' usage.`), t.name != null && (e.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (e.version = t.version), e.operations = s, e.usageId = a, await oe("config.json", e), e;
|
|
5325
5325
|
}
|
|
5326
|
-
async function
|
|
5327
|
-
|
|
5328
|
-
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(
|
|
5326
|
+
async function fr(t, e) {
|
|
5327
|
+
K(`${t} Build context project configuration`);
|
|
5328
|
+
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(Ji, s);
|
|
5329
5329
|
if (!o.success)
|
|
5330
5330
|
throw console.error("❌ Configuration is invalid:"), console.table(o.issues), new Error("Configuration is invalid.");
|
|
5331
5331
|
const f = De(a);
|
|
5332
5332
|
return await Fe(e, s, f);
|
|
5333
5333
|
}
|
|
5334
|
-
async function
|
|
5335
|
-
|
|
5336
|
-
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(
|
|
5334
|
+
async function dr(t, e) {
|
|
5335
|
+
K(`${t} Build presenter project configuration`);
|
|
5336
|
+
const [s, a] = await Promise.all([et("config.json"), At("src/index.ts")]), o = /* @__PURE__ */ Ee(es, s);
|
|
5337
5337
|
if (!o.success)
|
|
5338
5338
|
throw console.error("❌ Configuration is invalid:"), console.table(o.issues), new Error("Configuration is invalid.");
|
|
5339
5339
|
const f = De(a);
|
|
5340
5340
|
return await Fe(e, s, f);
|
|
5341
5341
|
}
|
|
5342
5342
|
async function qi(t, e, s = "./") {
|
|
5343
|
-
if (
|
|
5343
|
+
if (K(`${t} Bump project version`), e.version == null)
|
|
5344
5344
|
e.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${e.version}'.`), await oe(`${s}package.json`, e);
|
|
5345
5345
|
else {
|
|
5346
5346
|
const a = e.version, o = e.version.split(".");
|
|
5347
5347
|
e.version = `${o[0]}.${o[1]}.${Number(o[2]) + 1}`, console.info(`Project version bumped from '${a}' to '${e.version}'.`), await oe(`${s}package.json`, e);
|
|
5348
5348
|
}
|
|
5349
5349
|
}
|
|
5350
|
-
function
|
|
5350
|
+
function mr(t) {
|
|
5351
5351
|
let e = !1, s = !1;
|
|
5352
5352
|
for (const a of t)
|
|
5353
|
-
|
|
5353
|
+
Zi.includes(a) && (e = !0), ts.includes(a) && (s = !0);
|
|
5354
5354
|
return e && s ? "bidirectional" : e ? "source" : s ? "destination" : "unknown";
|
|
5355
5355
|
}
|
|
5356
|
-
const
|
|
5356
|
+
const yr = {
|
|
5357
5357
|
critical: { color: "D32F2F", label: "critical" },
|
|
5358
5358
|
high: { color: "EF6C00", label: "high" },
|
|
5359
5359
|
moderate: { color: "FBC02D", label: "moderate" },
|
|
5360
5360
|
low: { color: "6D8C31", label: "low" },
|
|
5361
5361
|
unknown: { color: "616161", label: "unknown" }
|
|
5362
5362
|
// See sample badges in ~/tests/sampleBadges.md. Also included 'info' colouring.
|
|
5363
|
-
},
|
|
5364
|
-
async function
|
|
5363
|
+
}, xr = "<!-- OWASP_BADGES_START -->", vr = "<!-- OWASP_BADGES_END -->";
|
|
5364
|
+
async function Fr() {
|
|
5365
5365
|
try {
|
|
5366
5366
|
xt("Audit Dependencies"), await Ve();
|
|
5367
5367
|
const t = await et("package.json");
|
|
@@ -5374,13 +5374,13 @@ async function Vr() {
|
|
|
5374
5374
|
"--nodePackageSkipDevDependencies",
|
|
5375
5375
|
"--nvdApiKey",
|
|
5376
5376
|
process.env.OWASP_NVD_API_KEY ?? ""
|
|
5377
|
-
]), await
|
|
5377
|
+
]), await gr("2️⃣"), await dt("3️⃣ Check using 'npm audit'", "npm", ["audit"]), St("Dependencies audited.");
|
|
5378
5378
|
} catch (t) {
|
|
5379
5379
|
console.error("❌ Error auditing dependencies.", t), process.exit(1);
|
|
5380
5380
|
}
|
|
5381
5381
|
}
|
|
5382
|
-
async function
|
|
5383
|
-
|
|
5382
|
+
async function gr(t) {
|
|
5383
|
+
K(`${t} Insert OWASP Badge(s) into 'README.md'`);
|
|
5384
5384
|
const e = await et("dependency-check-reports/dependency-check-report.json"), s = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
|
|
5385
5385
|
for (const d of e.dependencies)
|
|
5386
5386
|
if (d.vulnerabilities != null)
|
|
@@ -5388,34 +5388,34 @@ async function vr(t) {
|
|
|
5388
5388
|
const g = v.severity?.toLowerCase() ?? "unknown";
|
|
5389
5389
|
g in s ? s[g]++ : s.unknown++;
|
|
5390
5390
|
}
|
|
5391
|
-
const a = await
|
|
5391
|
+
const a = await br(s), o = await At("./README.md"), f = Ui(o, a.join(" "), xr, vr);
|
|
5392
5392
|
await $t("README.md", f), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
5393
5393
|
}
|
|
5394
|
-
async function
|
|
5394
|
+
async function br(t) {
|
|
5395
5395
|
const e = await et("config.json"), s = [];
|
|
5396
5396
|
if (Object.values(t).reduce((o, f) => o + f, 0) === 0)
|
|
5397
5397
|
console.info("No vulnerabilities found."), s.push(`[](https://data-positioning.github.io/${e.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5398
5398
|
else
|
|
5399
5399
|
for (const [o, f] of Object.entries(t)) {
|
|
5400
|
-
const d =
|
|
5400
|
+
const d = yr[o];
|
|
5401
5401
|
if (console.warn(`⚠️ ${f} ${d.label} vulnerability(ies) found.`), f === 0) continue;
|
|
5402
5402
|
const v = `https://img.shields.io/badge/OWASP-${f}%20${d.label}-${d.color}`;
|
|
5403
5403
|
s.push(`[](https://data-positioning.github.io/${e.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5404
5404
|
}
|
|
5405
5405
|
return s;
|
|
5406
5406
|
}
|
|
5407
|
-
async function
|
|
5407
|
+
async function Br() {
|
|
5408
5408
|
try {
|
|
5409
5409
|
xt("Check Dependencies"), await dt("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await dt("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", ["-i"]), St("Dependencies checked.");
|
|
5410
5410
|
} catch (t) {
|
|
5411
5411
|
console.error("❌ Error checking dependencies.", t), process.exit(1);
|
|
5412
5412
|
}
|
|
5413
5413
|
}
|
|
5414
|
-
const
|
|
5415
|
-
async function
|
|
5414
|
+
const Tr = "<!-- DEPENDENCY_LICENSES_START -->", Sr = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
5415
|
+
async function jr(t = [], e = !0) {
|
|
5416
5416
|
try {
|
|
5417
5417
|
xt("Document Dependencies"), await Ve();
|
|
5418
|
-
const s = t.flatMap((o) => ["--allowed", `'${o}'`]), a = ri(new
|
|
5418
|
+
const s = t.flatMap((o) => ["--allowed", `'${o}'`]), a = ri(new as(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
5419
5419
|
await ct(
|
|
5420
5420
|
"1️⃣ Generate 'licenses.json' file",
|
|
5421
5421
|
"license-report",
|
|
@@ -5426,7 +5426,7 @@ async function Br(t = [], e = !0) {
|
|
|
5426
5426
|
"license-report-recursive",
|
|
5427
5427
|
["--only=prod,peer", "--output=tree", "--recurse", "--department.value=n/a", "--licensePeriod.value=n/a", "--material.value=n/a", "--relatedTo.value=n/a"],
|
|
5428
5428
|
"licenses/licenseTree.json"
|
|
5429
|
-
), await ct("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (
|
|
5429
|
+
), await ct("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (K("3️⃣ Skip 'licenses/licenseTree.json' file generate"), K("4️⃣ Skip 'licenses/licenseTree.json' file check")), await nr("licenses/downloads"), await ct("5️⃣ Download license files", "license-downloader", [
|
|
5430
5430
|
"--source",
|
|
5431
5431
|
"licenses/licenses.json",
|
|
5432
5432
|
"--licDir",
|
|
@@ -5434,13 +5434,13 @@ async function Br(t = [], e = !0) {
|
|
|
5434
5434
|
"--githubToken.tokenEnvVar",
|
|
5435
5435
|
"GITHUB_TOKEN",
|
|
5436
5436
|
"--download"
|
|
5437
|
-
]), await
|
|
5437
|
+
]), await Pr("6️⃣", e), St("Dependencies documented.");
|
|
5438
5438
|
} catch (s) {
|
|
5439
5439
|
console.error("❌ Error documenting dependencies.", s), process.exit(1);
|
|
5440
5440
|
}
|
|
5441
5441
|
}
|
|
5442
|
-
async function
|
|
5443
|
-
|
|
5442
|
+
async function Pr(t, e) {
|
|
5443
|
+
K(`${t} Insert licenses into 'README.md'`);
|
|
5444
5444
|
const s = await et("licenses/licenses.json"), a = await et("licenses/downloads/licenses.ext.json");
|
|
5445
5445
|
let o = [];
|
|
5446
5446
|
e && (o = await et("licenses/licenseTree.json"));
|
|
@@ -5464,15 +5464,15 @@ async function Sr(t, e) {
|
|
|
5464
5464
|
|:-|:-|:-:|:-:|:-|-:|:-|
|
|
5465
5465
|
`;
|
|
5466
5466
|
for (const h of f) {
|
|
5467
|
-
const P = h.installedVersion === h.remoteVersion ? h.installedVersion : `${h.installedVersion} ⚠️`, N = h.latestRemoteModified ?
|
|
5467
|
+
const P = h.installedVersion === h.remoteVersion ? h.installedVersion : `${h.installedVersion} ⚠️`, N = h.latestRemoteModified ? Cr(h.latestRemoteModified.split("T")[0]) : "n/a", B = h.dependencyCount != null && h.dependencyCount >= 0 ? h.dependencyCount : "n/a";
|
|
5468
5468
|
let nt;
|
|
5469
5469
|
h.licenseFileLink == null || h.licenseFileLink == "" ? nt = "⚠️ No license file" : nt = `[${h.licenseFileLink.slice(Math.max(0, h.licenseFileLink.lastIndexOf("/") + 1))}](${h.licenseFileLink})`, d += `|${h.name}|${h.licenseType}|${P}|${h.remoteVersion}|${N}|${B}|${nt}|
|
|
5470
5470
|
`;
|
|
5471
5471
|
}
|
|
5472
|
-
const v = await At("./README.md"), g = Ui(v, d,
|
|
5472
|
+
const v = await At("./README.md"), g = Ui(v, d, Tr, Sr);
|
|
5473
5473
|
await $t("README.md", g), console.info("OWASP audit badge(s) inserted into 'README.md'"), await $t("README.md", g);
|
|
5474
5474
|
}
|
|
5475
|
-
function
|
|
5475
|
+
function Cr(t) {
|
|
5476
5476
|
if (t == null || t === "") return "n/a";
|
|
5477
5477
|
const e = t.split("T")[0];
|
|
5478
5478
|
if (e == null || e === "") return "n/a";
|
|
@@ -5480,34 +5480,36 @@ function Pr(t) {
|
|
|
5480
5480
|
let o = (a.getFullYear() - s.getFullYear()) * 12 + (a.getMonth() - s.getMonth());
|
|
5481
5481
|
return a.getDate() < s.getDate() && (o -= 1), o === 0 ? `this month: ${e}` : o === 1 ? `1 month ago: ${e}` : o <= 6 ? `${o} months ago: ${e}` : o <= 12 ? `${o} months ago: ${e} ⚠️` : `${o} months ago: ${e}❗`;
|
|
5482
5482
|
}
|
|
5483
|
-
async function
|
|
5483
|
+
async function Ur() {
|
|
5484
5484
|
try {
|
|
5485
|
-
xt("Format Code")
|
|
5485
|
+
xt("Format Code");
|
|
5486
|
+
const s = ["--write", "*.json", "*.md", "*.ts", ...["app", "src"].filter((a) => Xi(a)).map((a) => `${a}/**`)];
|
|
5487
|
+
await dt("1️⃣ Format", "prettier", s), St("Code formatted.");
|
|
5486
5488
|
} catch (t) {
|
|
5487
5489
|
console.error("❌ Error formatting code.", t), process.exit(1);
|
|
5488
5490
|
}
|
|
5489
5491
|
}
|
|
5490
|
-
async function
|
|
5492
|
+
async function qr() {
|
|
5491
5493
|
try {
|
|
5492
5494
|
xt("Lint Code"), await dt("1️⃣ Lint", "eslint", ["."]), St("Code linted.");
|
|
5493
5495
|
} catch (t) {
|
|
5494
5496
|
console.error("❌ Error linting code.", t), process.exit(1);
|
|
5495
5497
|
}
|
|
5496
5498
|
}
|
|
5497
|
-
const
|
|
5498
|
-
async function
|
|
5499
|
+
const kr = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣"];
|
|
5500
|
+
async function Hr(t = []) {
|
|
5499
5501
|
try {
|
|
5500
5502
|
xt("Update '@datapos/datapos' Dependencies");
|
|
5501
5503
|
for (const [e, s] of t.entries()) {
|
|
5502
|
-
const a =
|
|
5503
|
-
await dt(`${a} Update '${s}'`, "npm", ["install", `@datapos/datapos-${s}@latest`]), s === "development" && await
|
|
5504
|
+
const a = kr.at(e) ?? "🔢";
|
|
5505
|
+
await dt(`${a} Update '${s}'`, "npm", ["install", `@datapos/datapos-${s}@latest`]), s === "development" && await wr();
|
|
5504
5506
|
}
|
|
5505
5507
|
St("'@datapos/datapos' dependencies updated.");
|
|
5506
5508
|
} catch (e) {
|
|
5507
5509
|
console.error("❌ Error updating '@datapos/datapos' dependencies.", e), process.exit(1);
|
|
5508
5510
|
}
|
|
5509
5511
|
}
|
|
5510
|
-
async function
|
|
5512
|
+
async function wr(t) {
|
|
5511
5513
|
const e = te.dirname(ri(import.meta.url));
|
|
5512
5514
|
await Zt(e, "../", ".editorconfig"), await Zt(e, "../", ".gitattributes"), await Zt(e, "../", ".markdownlint.json"), await Zt(e, "../", "LICENSE");
|
|
5513
5515
|
}
|
|
@@ -5525,7 +5527,7 @@ async function Zt(t, e, s) {
|
|
|
5525
5527
|
}
|
|
5526
5528
|
await $t(f, o), console.info(`ℹ️ File '${s}' synchronised.`);
|
|
5527
5529
|
}
|
|
5528
|
-
async function
|
|
5530
|
+
async function $r(t) {
|
|
5529
5531
|
try {
|
|
5530
5532
|
console.info(`🚀 Building public directory index for identifier '${t}'...`);
|
|
5531
5533
|
const e = {};
|
|
@@ -5541,7 +5543,7 @@ async function Hr(t) {
|
|
|
5541
5543
|
const N = await at.readdir(h), B = { childCount: N.length, name: g, typeId: "folder" };
|
|
5542
5544
|
d.push(B), await s(h, N);
|
|
5543
5545
|
} else {
|
|
5544
|
-
const N = { id:
|
|
5546
|
+
const N = { id: Qi(), lastModifiedAt: P.mtimeMs, name: g, size: P.size, typeId: "object" };
|
|
5545
5547
|
d.push(N);
|
|
5546
5548
|
}
|
|
5547
5549
|
} catch (P) {
|
|
@@ -5560,16 +5562,16 @@ async function Hr(t) {
|
|
|
5560
5562
|
}
|
|
5561
5563
|
}
|
|
5562
5564
|
export {
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5565
|
+
Fr as auditDependencies,
|
|
5566
|
+
$r as buildDirectoryIndex,
|
|
5567
|
+
Rr as buildProject,
|
|
5568
|
+
Br as checkDependencies,
|
|
5569
|
+
jr as documentDependencies,
|
|
5570
|
+
Ur as formatCode,
|
|
5571
|
+
qr as lintCode,
|
|
5572
|
+
Mr as releaseProject,
|
|
5573
|
+
Dr as syncProjectWithGitHub,
|
|
5574
|
+
Vr as testProject,
|
|
5575
|
+
Hr as updateDataPosDependencies
|
|
5574
5576
|
};
|
|
5575
5577
|
//# sourceMappingURL=datapos-development.es.js.map
|